package com.gome.ai.aiparter.even;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

/**
 * 定义一个自定义事件，继承ApplicationEvent类
 *
 * @author lww
 * @date 2020-04-09 17:41
 */
@Slf4j
public class MyApplicationEvent extends ApplicationEvent {

    private static final long serialVersionUID = 1L;

    public MyApplicationEvent(Object source) {
        super(source);
        log.info("发布事件：source = " + source);
    }
}